local skynet = require "skynet"
local sprotoloader = require "sprotoloader"

local max_client = 9999999


skynet.start(function()
	print("Server start")
	skynet.newservice("debug_console",8002) 
	skynet.newservice("mg_save")
	skynet.newservice("majiang_hall")
	skynet.newservice("yfmj_hall")
	skynet.newservice("douniu_hall")
	skynet.newservice("login")  
	local watchdog = skynet.newservice("watchdog")
	skynet.call(watchdog, "lua", "start", {
		port = 8888,
		maxclient = max_client,
		nodelay = true,
	})
	skynet.exit() 
end)
 